package com.accp.vehiclecare.action.xzhaction;

import com.accp.vehiclecare.biz.xzhbiz.BusinessTodayBiz;
import com.accp.vehiclecare.vo.xzhvo.BusinessTodayVO;
import com.accp.vehiclecare.vo.xzhvo.MonthlyBusinessData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags="首页接口模块")
@RestController
@RequestMapping("/api/BusinessTodayAction")
public class BusinessTodayAction {
    @Autowired
    private BusinessTodayBiz businessTodayBiz;

    @ApiOperation(value="查询当天营业数据", notes = "查询当天营业数据", httpMethod = "GET")
    @GetMapping("/queryBusinessToday")
    public BusinessTodayVO queryBusinessToday(){
        return businessTodayBiz.queryBusinessToday();
    }

    @ApiOperation(value="查询月度营业数据", notes = "查询月度营业数据", httpMethod = "GET")
    @GetMapping("/queryMonthlyOperatingData")
    public MonthlyBusinessData queryMonthlyOperatingData(){
        return businessTodayBiz.queryMonthlyOperatingData();
    }


}
